package com.whut.mapper;

import com.whut.model.ProjectSampleItem;
import com.whut.v_bo.ProjectSampleItemSearch;
import com.whut.v_bo.ProjectSampleV3BO;

import java.util.List;

public interface ProjectSampleItemMapper {
    int insert(ProjectSampleItem t);

    int insertBatch(List<ProjectSampleItem> ts);

    int updateById(ProjectSampleItem t);

    int deleteBySampleId(Integer sampleId);

    List<ProjectSampleItem> listBySearch(ProjectSampleItemSearch search);

    /**
     * 根据项目ID和抽样类型查询抽样子项
     *
     * @param entry
     * @return
     */
    List<ProjectSampleItem> findByProjectAndType(ProjectSampleV3BO entry);
}
